//
//  HCCallListViewController.m
//  HelloCall
//
//  Created by WangYongpeng on 13-9-21.
//  Copyright (c) 2013年 HC. All rights reserved.
//

#import "HCCallListViewController.h"
#import "HCCallOperatingViewController.h"

@interface HCCallListViewController ()<HCComOperatingViewControllerDelegate>

@property (nonatomic, retain) UINavigationController* navigationController;
@property (nonatomic, retain) HCCallOperatingViewController* callOperateingViewController;

@end

@implementation HCCallListViewController

@synthesize navigationController = m_navigationController;
@synthesize callOperateingViewController = m_callOperateingViewController;

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    self.callOperateingViewController = [[HCCallOperatingViewController alloc] init];
    self.callOperateingViewController.delegate = self;
    
    self.navigationController = [[UINavigationController alloc] initWithRootViewController:self.callOperateingViewController];

    [self.view addSubview:self.navigationController.view];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark -- HCComOperatingViewControllerDelegate
- (void)showNextView:(UIViewController *)viewController
{
    [self.navigationController pushViewController:viewController animated:YES];
}

@end
